<?php

use Biz\service\Category as sCategory;

/**
 * @deprecated
 */
class CategoryListAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {

        $category_id = $this->getRequest()->getQuery('category_id', 0);
		$is_has_all = $this->getRequest()->getQuery('is_has_all', 1);
		$appVersion = $this->appVersion;
        $result = (object)[];
        if ($category_id) {
            $result = sCategory::getClassifyByIdForApp($category_id, $is_has_all, $appVersion);
        }

        $this->setSuccess($result);

    }
}